<!--
 * @Description: 
 * @Author: charles
 * @Date: 2021-06-17 10:24:47
 * @LastEditors: charles
 * @LastEditTime: 2021-06-17 10:37:07
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>数据类型-Number</title>
</head>
<body>
  
  <script>
    // 声明
    let a = 'true';
    // 检测数据类型
    let result = typeof a;

    let b = true;
    result = typeof b;
    // 打印结果
    console.log(result);

  </script>
</body>
</html>